<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2020/12/24
  Time: 16:38
  To change this template use File | Settings | File Templates.
  http://localhost:8081/StuAndTea/student/bootstrap/bootstrap.min.css
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    //获取项目名称
    String path = request.getContextPath();
    //获取: 协议://服务器名称:/端口号+ path +"/"
    //http://localhost:8080/Demo18_StuAndTeacher/  --->main.jsp
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>修改个人信息</title>
    <base href="<%=basePath%>">
    <link rel="stylesheet" href="bootstrap/bootstrap.min.css">
</head>
<style type="text/css">
    .div_ads {
        width: 75%;
        margin: 50px auto 0 0;
    }

    table {
        margin: 0 auto;
        width:100%;
        border-collapse:separate;
        border-spacing:0px 10px;
    }
    table tr td {
        text-align: center;
        width:150px;
        height:44px;
    }
</style>
<body>
<form action="ServletEditStudentInfo" method="post">
    <div class="div_ads">
        <span>${msg }</span>
        <table>
            <tr>
                <td>学&nbsp;&nbsp;&nbsp;号：</td>
                <td><input type="text" name="stuNum" class="form-control" value="${stu.stuNum }" readonly="readonly" /></td>
            </tr>
            <tr>
                <td>姓&nbsp;&nbsp;&nbsp;名：</td>
                <td><input type="text" name="stuName" class="form-control" value="${stu.stuName }" /></td>
            </tr>
            <tr>
                <td>性&nbsp;&nbsp;&nbsp;别：</td>
                <td>
                    <select name="stuSex" class="form-control">
                        <c:if test="${stu.stuSex=='男'}">
                            <option value="男" selected="selected">男</option>
                            <option value="女">女</option>
                        </c:if>
                        <c:if test="${stu.stuSex=='女'}">
                            <option value="男" >男</option>
                            <option value="女" selected="selected">女</option>
                        </c:if>
                    </select>
                </td>
            </tr>
            <tr>
                <td>年&nbsp;&nbsp;&nbsp;龄：</td>
                <td><input type="text" name="stuAge" class="form-control" value="${stu.stuAge }" /></td>
            </tr>
            <tr>
                <td>班&nbsp;&nbsp;&nbsp;级：</td>
                <td><input type="text" name="stuClass" class="form-control" value="${stu.stuClass }" /></td>
            </tr>
            <tr>
                <td>专&nbsp;&nbsp;&nbsp;业：</td>
                <td><input type="text" name="major" class="form-control" value="${stu.major }" /></td>
            </tr>
            <tr>
                <td>院&nbsp;&nbsp;&nbsp;系：</td>
                <td><input type="text" name="department" class="form-control" value="${stu.department }" /></td>
            </tr>
            <tr>
                <td><input type="submit" value="修改" class="btn btn-primary" /></td>
                <td><input type="reset" value="清空" class="btn btn-danger" /></td>
            </tr>
        </table>
    </div>
</form>
</body>
</html>
